package com.ruoyi.vpn.mapper;

import java.util.List;
import com.ruoyi.vpn.domain.VpnPlan;

/**
 * planMapper接口
 * 
 * @author Edwin
 * @date 2024-01-08
 */
public interface VpnPlanMapper 
{
    /**
     * 查询plan
     * 
     * @param planId plan主键
     * @return plan
     */
    public VpnPlan selectVpnPlanByPlanId(Long planId);

    /**
     * 查询plan列表
     * 
     * @param vpnPlan plan
     * @return plan集合
     */
    public List<VpnPlan> selectVpnPlanList(VpnPlan vpnPlan);

    /**
     * 新增plan
     * 
     * @param vpnPlan plan
     * @return 结果
     */
    public int insertVpnPlan(VpnPlan vpnPlan);

    /**
     * 修改plan
     * 
     * @param vpnPlan plan
     * @return 结果
     */
    public int updateVpnPlan(VpnPlan vpnPlan);

    /**
     * 删除plan
     * 
     * @param planId plan主键
     * @return 结果
     */
    public int deleteVpnPlanByPlanId(Long planId);

    /**
     * 批量删除plan
     * 
     * @param planIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVpnPlanByPlanIds(Long[] planIds);
}
